package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 售后服务单（三包办理）赔偿设备明细
 * 
 */
@Entity
@Table(name = "sl_crm_afterTicketPay")
public class AfterSaleTicketPay extends Root {

	 /**
	   * 零件名称
	   * 
	   **/
	   @Column(name="sPartName")
	   private String partName;
	   /**
		   * 图号
		   * 
	    **/
	   @Column(name="sFigureNumber")
	   private String figureNumber;
	   /**
		 * 数量
		 **/
		@Column(name="nQuantity")
		private int quantity;
		/**
		   * 材质
		   * 
	    **/
	   @Column(name="sMaterial")
	   private String material;
	   /**
		 * 单价
		 **/
		@Column(name="nPrice")
		private float price;
		/**
		 * 总价
		 **/
		@Column(name="nSumPrice")
		private float sumPrice;
		/**
		 * 备注
		 **/
		@Column(name="sDeviceMemo")
		private String deviceMemo;
		/**AfterSaleTicket_id */
		@ManyToOne
		@JoinColumn(unique = false)
		private AfterSaleTicket afterSaleTicket;
		
		public String getPartName() {
			return partName;
		}
		public void setPartName(String partName) {
			this.partName = partName;
		}
		public String getFigureNumber() {
			return figureNumber;
		}
		public void setFigureNumber(String figureNumber) {
			this.figureNumber = figureNumber;
		}
		public int getQuantity() {
			return quantity;
		}
		public void setQuantity(int quantity) {
			this.quantity = quantity;
		}
		public String getMaterial() {
			return material;
		}
		public void setMaterial(String material) {
			this.material = material;
		}
		public float getPrice() {
			return price;
		}
		public void setPrice(float price) {
			this.price = price;
		}
		public float getSumPrice() {
			return sumPrice;
		}
		public void setSumPrice(float sumPrice) {
			this.sumPrice = sumPrice;
		}
		public AfterSaleTicket getAfterSaleTicket() {
			return afterSaleTicket;
		}
		public void setAfterSaleTicket(AfterSaleTicket afterSaleTicket) {
			this.afterSaleTicket = afterSaleTicket;
		}
		public String getDeviceMemo() {
			return deviceMemo;
		}
		public void setDeviceMemo(String deviceMemo) {
			this.deviceMemo = deviceMemo;
		}
		
}
